package com.lzjy.tw.composedemo.ui.nav

import androidx.compose.runtime.Composable
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.navigation.NavHostController
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import com.lzjy.tw.composedemo.ui.screen.home.HomeScreen

@Composable
fun MainNavCompose(navController: NavHostController) {
    // startDestination
    NavHost(navController, startDestination = NavScreen.Home.route) {
        composable(route = NavScreen.Splash.route) {

        }
        composable(route = NavScreen.Home.route) {
            HomeScreen(hiltViewModel())
        }
    }
}